package com.CMUBiS.util;

import java.io.*;

/**
 * This class allows output to be written to nowhere. We can use this to prevent pages being returned
 * I found this useful to just hit the DB and create CPU cycles without a large network load
 * 
 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
 * @version 0.1
 * @since 0.1
 * @date 04/05/2011
 */

public class BlackHoleOutput extends OutputStream{
	/**
	 * Do nothing with written input
	 * 
	 * @param arg0 The data not to be written
	 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
	 */
	public void write(int arg0) throws IOException {
		// Do nothing in this black hole
	}
	
	/**
	 * Do nothing with written input
	 * 
	 * @param arg0 The data not to be written
	 * @author Andy (andrewtu@cmu.edu, turner.andy@gmail.com)
	 */
	public void write(String arg0) throws IOException {
		// Do nothing in this black hole
	}
}
